<%@ Page Language="vb" AutoEventWireup="false" Codebehind="OrderView_Print.aspx.vb" Inherits="MIMS_WRS.Web.OrderView_Print"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Order Information</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../style.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="../Js/EventCapture.js"></script>
		<script language="javascript">
		<!--
		function Print_click() {
			window.document.getElementById('btnPrint').style.display = "none";
			window.document.getElementById('btnClose').style.display = "none";
			window.print();
			window.document.getElementById('btnPrint').style.display = "";
			window.document.getElementById('btnClose').style.display = "";
		}
		//-->
		</script>
	</HEAD>
	<body class="bgwhite" bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
		<form id="Form1" method="post" runat="server">
			<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<TBODY>
					<tr>
						<td vAlign="top" align="center" height="100%">
							<table class="border1" height="100%" cellSpacing="2" cellPadding="2" width="100%" border="0">
								<tr>
									<td class="bggrey" align="center">
										<TABLE height="100%" cellSpacing="0" cellPadding="3" width="100%" border="0">
											<TR class="bgmenu" align="center">
												<TD width="100%" height="30"><span class="txtnormal"><strong>ORDER INFORMATION</strong></span></TD>
											</TR>
											<TR class="txtnormal" align="center">
												<TD vAlign="top">
													<table class="border1" cellSpacing="2" cellPadding="2" width="100%" border="0">
														<tr>
															<td align="center" bgColor="#f9f9f9">
																<TABLE cellSpacing="0" cellPadding="3" width="100%" border="0">
																	<TBODY>
																		<TR>
																			<TD class="bgmenu" align="right" height="20">
																				<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
																					<TBODY>
																						<TR>
																							<TD class="txtnormal"><STRONG>&nbsp;Order Information</STRONG></TD>
																							<TD align="right"></TD>
																						</TR>
																					</TBODY>
																				</TABLE>
																			</TD>
																		</TR>
																		<!-- View Order Form: start -->
																		<TR id="trViewOrder">
																			<TD class="txtnormal" align="center">
																				<table class="bglinetop1" cellSpacing="1" cellPadding="2" width="100%" border="0">
																					<tr class="bggrey">
																						<td vAlign="top" width="50%" height="13">
																							<TABLE cellSpacing="0" cellPadding="3" width="100%" border="0">
																								<TR>
																									<TD class="txtnormal" width="150" style="WIDTH: 150px"><strong>Customer Name:</strong></TD>
																									<TD class="txtcolor2" width="68%"><strong>
																											<%=  MIMS_WRS.Business.CUser.GetName(PageBO.CustomerID) %>
																										</strong>
																									</TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal" style="WIDTH: 150px"><strong>Packing:</strong></TD>
																									<TD class="txtcolor2"><strong>
																											<%= GetPackingTypeText %>
																										</strong>
																									</TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal" style="WIDTH: 150px"><strong>Arrival Port:</strong></TD>
																									<TD class="txtcolor2" noWrap><strong>
																											<%= PageBO.DestinationPort %>
																										</strong>
																									</TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal" style="WIDTH: 150px"><strong>Supplier Code:</strong></TD>
																									<TD class="txtcolor2"><strong><strong>
																												<%= PageBO.SupplierCode %>
																											</strong></strong>
																									</TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal" style="WIDTH: 150px"><strong><%= HttpUtility.HtmlEncode(OrderCustomer.SortReference1) %>:</strong></TD>
																									<TD class="txtcolor2"><strong>
																											<%= PageBO.SortReference %>
																										</strong>
																									</TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal" style="WIDTH: 150px"><strong><%= HttpUtility.HtmlEncode(OrderCustomer.SortReference2) %>:</strong></TD>
																									<TD class="txtcolor2"><strong>
																											<%= PageBO.SortReference2 %>
																										</strong>
																									</TD>
																								</TR>
																								<TR vAlign="top">
																									<TD class="txtnormal" style="WIDTH: 150px"><strong>Requested ETA:</strong></TD>
																									<TD class="txtcolor2"><strong><span class="txtcolor2"><%= GetRequestedETAText %></span></strong></TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal" noWrap style="WIDTH: 150px"><strong>Containers:</strong></TD>
																									<TD class="txtcolor2"><strong><%= GetContainerText %></strong></TD>
																								</TR>
																							</TABLE>
																						</td>
																						<td vAlign="top" width="50%">
																							<TABLE cellSpacing="0" cellPadding="3" width="100%" border="0">
																								<TR>
																									<TD class="txtnormal" width="49%"><strong><asp:label id="lblOrderNoText" Runat="server"></asp:label>:
																										</strong>
																									</TD>
																									<TD class="txtcolor2" width="51%"><strong>
																											<%= PageBO.OrderNumber %>
																										</strong>
																									</TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal"><strong>Shipping:</strong></TD>
																									<TD class="txtcolor2"><strong>
																											<%= GetShippingTypeText %>
																										</strong>
																									</TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal" noWrap><strong>Order Date:</strong></TD>
																									<TD class="txtcolor2"><strong><%= MIMS_WRS.Business.Common.FormatDate(PageBO.OrderDate) %></strong></TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal"><strong>Order By:</strong></TD>
																									<TD class="txtcolor2"><strong><%= GetContactName %></strong></TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal"><strong><% if (PageBO.UserCountry="United States") then %>
																											UPC:<%else%>
																											EAN:<%end if%>
																										</strong>
																									</TD>
																									<TD class="txtcolor2"><strong>
																											<%= PageBO.UserBarCode %>
																										</strong>
																									</TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal"><strong>Adjust By:</strong></TD>
																									<TD class="txtcolor2"><strong><%=  MIMS_WRS.Business.CUser.GetName(PageBO.AdjustedByID) %></strong></TD>
																								</TR>
																								<TR vAlign="top">
																									<TD class="txtnormal"><strong>Adjust Date: </strong>
																									</TD>
																									<TD class="txtcolor2"><strong><%= MIMS_WRS.Business.Common.FormatDate(PageBO.AdjustedDate) %></strong></TD>
																								</TR>
																								<TR>
																									<TD class="txtnormal" vAlign="top"><strong>General Shipping Instructions:</strong></TD>
																									<TD class="txtcolor2"><strong><%= PageBo.ShippingInstructions %></strong></TD>
																								</TR>
																							</TABLE>
																						</td>
																					</tr>
																				</table>
																			</TD>
																		</TR>
																		<!-- View Order Form: end --></TBODY></TABLE>
																<!--Edit Form -->
																<TABLE id="tbEditForm" cellSpacing="0" cellPadding="3" width="100%" border="0" runat="server"
																	visible="false">
																	<TBODY>
																		<TR>
																			<TD class="bgmenu" vAlign="bottom" height="20"><A name="complete"></A>
																				<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
																					<TBODY>
																						<TR>
																							<TD><STRONG class="txtnormal">&nbsp;Order's Complete Information</STRONG></TD>
																							<TD align="right">&nbsp;
																							</TD>
																						</TR>
																					</TBODY>
																				</TABLE>
																			</TD>
																		</TR>
																		<TR>
																			<TD class="txtnormal" align="center"></TD>
																		</TR>
																		<TR>
																			<TD class="txtnormal" height="5"><IMG height="1" src="../images/1pxl.gif" width="1"></TD>
																		</TR>
																		<TR>
																			<TD class="txtnormal">
																				<TABLE cellSpacing="0" cellPadding="3" width="100%" border="0">
																					<TBODY>
																						<TR>
																							<TD class="txtnormal" noWrap width="19%">Actual Departure Date:</TD>
																							<TD class="txtcolor2" width="45%"><asp:label id="lblDepartureDate" runat="server">23/Aug/2004</asp:label></TD>
																							<TD class="txtnormal" width="14%">Container Number :</TD>
																							<TD class="txtcolor2" width="22%"><asp:label id="lblContainerNumber" runat="server">23345</asp:label></TD>
																						</TR>
																						<TR>
																							<TD class="txtnormal" style="HEIGHT: 18px">Destination:</TD>
																							<TD class="txtcolor2" style="HEIGHT: 18px"><asp:label id="lblDestination" runat="server">246 Ly Thuong Kiet</asp:label></TD>
																							<TD class="txtnormal" style="HEIGHT: 18px" vAlign="top">Comments:</TD>
																							<TD class="txtcolor2" style="HEIGHT: 18px" vAlign="top"><asp:label id="lblComments" runat="server">comments</asp:label></TD>
																						</TR>
																						<TR>
																							<TD class="txtnormal">Freight Forwarder:</TD>
																							<TD class="txtcolor2"><asp:label id="lblFreightForwarder" runat="server">Freight</asp:label></TD>
																							<TD class="txtnormal">&nbsp;</TD>
																							<TD class="txtcolor2">&nbsp;</TD>
																						</TR>
																					</TBODY>
																				</TABLE>
																			</TD>
																		</TR>
																		<TR>
																			<TD class="txtnormal" height="5"><IMG height="1" src="../images/1pxl.gif" width="1"></TD>
																		</TR>
																	</TBODY>
																</TABLE>
																<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
																	<TBODY>
																		<TR>
																			<TD class="bgmenu" height="25">
																				<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
																					<TBODY>
																						<TR>
																							<TD height="30"><STRONG>&nbsp;</STRONG><SPAN class="txtcolor1"><STRONG>Product(s) Line:</STRONG></SPAN></TD>
																							<TD align="right"></TD>
																						</TR>
																					</TBODY>
																				</TABLE>
																			</TD>
																		</TR>
																		<TR>
																			<TD>
																				<asp:datagrid id="DataGrid1" runat="server" Width="100%" CssClass="border" BorderColor="#BFD6FB"
																					GridLines="None" BorderStyle="None" cellpadding="2" cellspacing="1" AutoGenerateColumns="False"
																					BorderWidth="0px">
																					<ItemStyle CssClass="bggrey"></ItemStyle>
																					<HeaderStyle Font-Bold="True" HorizontalAlign="Center" CssClass="txtheader" VerticalAlign="Middle"></HeaderStyle>
																					<Columns>
																						<asp:BoundColumn DataField="ProductCode" HeaderText="Product Code">
																							<HeaderStyle Width="11%"></HeaderStyle>
																						</asp:BoundColumn>
																						<asp:BoundColumn DataField="ProductDescription" HeaderText="Description">
																							<HeaderStyle Width="28%"></HeaderStyle>
																						</asp:BoundColumn>
																						<asp:BoundColumn DataField="Color" HeaderText="Color">
																							<HeaderStyle Width="7%"></HeaderStyle>
																						</asp:BoundColumn>
																						<asp:BoundColumn DataField="BarCode" HeaderText="Barcode">
																							<HeaderStyle Width="10%"></HeaderStyle>
																						</asp:BoundColumn>
																						<asp:BoundColumn DataField="Packing" HeaderText="Pack">
																							<HeaderStyle Width="8%"></HeaderStyle>
																							<ItemStyle HorizontalAlign="Right"></ItemStyle>
																						</asp:BoundColumn>
																						<asp:BoundColumn DataField="Quantity" HeaderText="Quantity Ordered">
																							<HeaderStyle Width="9%"></HeaderStyle>
																							<ItemStyle HorizontalAlign="Right"></ItemStyle>
																						</asp:BoundColumn>
																						<asp:BoundColumn DataField="SpecialInstructions" HeaderText="Special Instructions">
																							<HeaderStyle Width="10%"></HeaderStyle>
																						</asp:BoundColumn>
																						<asp:TemplateColumn HeaderText="Adjusted Quantity">
																							<HeaderStyle Width="9%"></HeaderStyle>
																							<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
																							<ItemTemplate>
																								<asp:Label runat="server" Text='<%# GetAdjustedQuantityText(container) %>' ID="Label1">
																								</asp:Label>
																							</ItemTemplate>
																						</asp:TemplateColumn>
																						<asp:BoundColumn DataField="UseFromBoNumber2" HeaderText="From BO#">
																							<HeaderStyle Width="8%"></HeaderStyle>
																						</asp:BoundColumn>
																					</Columns>
																				</asp:datagrid>
																			</TD>
																		</TR>
																	</TBODY>
																</TABLE>
															</td>
														</tr>
													</table>
												</TD>
											</TR>
											<TR class="txtnormal" id="buttons" style="DISPLAY: inline" align="center">
												<TD height="30"><span class="txtsmall"><input class="button" id="btnPrint" onclick="Print_click()" type="button" value="Print"
															name="btnPrint">&nbsp;<input class="button" id="btnClose" onclick="window.close()" type="button" value="Close"
															name="btnClose"> </span>
												</TD>
											</TR>
											<TR class="txtnormal" align="center">
												<TD height="10"><IMG height="1" src="../images/1pxl.gif" width="1"></TD>
											</TR>
										</TABLE>
									</td>
								</tr>
							</table>
		</form>
		</TD></TR></TBODY></TABLE>
	</body>
</HTML>
